package com.emip.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@Entity
@Table(name = "T_SiteSystemDesc")
public class SiteSystemDescBean implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="S_SITE_ID_GENE")
    @SequenceGenerator(name="S_SITE_ID_GENE",sequenceName="S_SITE_ID", allocationSize = 1)
	private String id;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "siteID")
    private SiteBean site;
	@Column(name="dWordSeq")
	private int dWordSeq;
	@Column(name="bitSeq")
	private int bitSeq;
	@Column(name="flagValue")
	private int flagValue;
	@Column(name="statusID")
	private String statusID;
	@Column(name="alarmFlag")
	private String alarmFlag;
	@Column(name="alarmContent")
	private String alarmContent;
	public SiteSystemDescBean() {
		
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public SiteBean getSite() {
		return site;
	}
	public void setSite(SiteBean site) {
		this.site = site;
	}
	public int getdWordSeq() {
		return dWordSeq;
	}
	public void setdWordSeq(int dWordSeq) {
		this.dWordSeq = dWordSeq;
	}
	public int getBitSeq() {
		return bitSeq;
	}
	public void setBitSeq(int bitSeq) {
		this.bitSeq = bitSeq;
	}
	public int getFlagValue() {
		return flagValue;
	}
	public void setFlagValue(int flagValue) {
		this.flagValue = flagValue;
	}
	public String getStatusID() {
		return statusID;
	}
	public void setStatusID(String statusID) {
		this.statusID = statusID;
	}
	public String getAlarmFlag() {
		return alarmFlag;
	}
	public void setAlarmFlag(String alarmFlag) {
		this.alarmFlag = alarmFlag;
	}
	public String getAlarmContent() {
		return alarmContent;
	}
	public void setAlarmContent(String alarmContent) {
		this.alarmContent = alarmContent;
	}
}
